import Vue from "vue";
import Vuex from "vuex";
import common from "./modules/common";
import user from "./modules/user"
Vue.use(Vuex); //挂载Vuex
// console.log(this.$store.state);
// console.log(localStorage.getItem('a'))

export default new Vuex.Store({
	modules: {
		common,
		user
	},
	state: {},
	mutations: {
		// 重置vuex本地储存状态
		// resetStore(state) {
		// 	Object.keys(state).forEach(key => {
		// 		state[key] = cloneDeep(window.SITE_CONFIG["storeState"][key]);
		// 	});
		// }
		
	},
	strict: process.env.NODE_ENV !== "production"
});
